package com.cdsz.boot.workspace.biz.modules.acti.service.impl;

import com.cdsz.boot.biz.modules.system.entity.SysPosition;
import com.cdsz.boot.biz.modules.system.entity.SysUserPosition;
import com.cdsz.boot.workspace.biz.modules.acti.entity.PublicSetting;
import com.cdsz.boot.workspace.biz.modules.acti.mapper.PublicSettingMapper;
import com.cdsz.boot.workspace.biz.modules.acti.service.IPublicSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 公共设置
 * @Author: jeecg-boot
 * @Date:   2024-06-05
 * @Version: V1.0
 */
@Service
public class PublicSettingServiceImpl extends ServiceImpl<PublicSettingMapper, PublicSetting> implements IPublicSettingService {
    @Autowired
    private PublicSettingMapper publicSettingMapper;

    public List<SysPosition> getUserHavePosition(String userId){
        return publicSettingMapper.getUserHavePosition(userId);
    }
    public List<SysPosition> getUserNoHavePosition(String userId){
        return publicSettingMapper.getUserNoHavePosition(userId);
    }
}
